import { Mode } from '@/core/interfaces/common'

export const businessLineByGet = () => ({
  url: '/api/v1/wordLib/list',
  method: 'get'
})

export const businessLineByPost = (mode: Mode) => ({
  url: mode === Mode.create ? '/api/v1/wordLib/add' : '/api/v1/wordLib/modify',
  method: 'post'
})

export const businessLineByRemove = () => ({
  url: '/api/v1/wordLib/del',
  method: 'post'
})

export const dictByGet = () => ({
  url: '/api/v1/word/list',
  method: 'get'
})

export const dictByPost = () => ({
  url: '/api/v1/word/add',
  method: 'post'
})

export const dictByRemove = () => ({
  url: '/api/v1/word/del',
  method: 'post'
})
